<table border="0" class="list">
<caption>订单信息</caption>
<tbody>
<tr class="nobg">
	<th>单号</th>
	<th>供应商</th>
	<th>金额</th>
	<th>备注</th>
	<th>用户</th>
	<th>审核状态</th>
	<th>入库状态</th>
	<th>时间</th>
</tr>
<tr>
	<td><?$indent.sno?></td>
	<td><?$indent.supplier_name?></td>
	<td><div class="decimal fnum"><{$indent.total}></div></td>
	<td class="text"><?$indent.remark?></td>
	<td><?$indent.user_name?></td>
	<td class="state"><?= IndentHelper::audit2txt($indent.audit_flow) ?></td>
	<td class="state"><?= IndentHelper::back2txt($indent.back_flow) ?></td>
	<td class="nowrap"><?=date('Y/m/d H:i', $indent.addtime)?></td>
</tr>
</tbody></table>

<table border="0" class="list">
<caption>订单明细</caption>
<tbody>
<tr class="nobg">
	<th>编号</th>
	<th>材料名称</th>
	<th>品牌</th>
	<th>规格</th>
	<th>单位</th>
	<th>数量</th>
	<th>单价</th>
	<th>金额</th>
	<th>备注</th>
</tr>
<? $amount = 0; ?>
<{foreach item=ware from=$indent.items}>
	<tr id="selstf_<{$ware.id}>">
		<td><{$ware.sno}></td>
		<td><{$ware.name}></td>
		<td><{$ware.brand}></td>
		<td><{$ware.specific}></td>
		<td><{$ware.unit}></td>
		<td><div class="decimal"><{$ware.amount}></div></td>
		<td><div class="decimal fnum"><{$ware.price}></div></td>
		<td><div class="decimal fnum"><{= $ware.price * $ware.amount}></div></td>
		<td><div class="text"><{= $ware.remark}></div></td>
	</tr>
	<? $amount += $ware.amount ?>
<{/foreach}>
	<tr >
		<td>小计</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td><div class="decimal"><? $amount ?></div></td>
		<td>&nbsp;</td>
		<td><div class="decimal fnum"><? $indent.total ?></div></td>
		<td>&nbsp;</td>
	</tr>
</tbody></table>